welo git mirrors
src/cli.rs 36c03f034bc3410be9e73b66d8f2302b2041b9dd (36c03f03) Text, 1.31 KB
Tff7b72use Te6edf3clap::Tb4b4b4{Te6edf3ParserTb4b4b4, Te6edf3SubcommandTb4b4b4}Tb4b4b4;
Tff7b72#[Tff7b72derive(Parser)Tff7b72]
Tff7b72#[Tff7b72command(name = Ta5d6ff"Ta5d6ffrns-proxyTa5d6ff"Tff7b72)Tff7b72]
Tff7b72#[Tff7b72command(about = Ta5d6ff"Ta5d6ffSOCKS5 proxy over Reticulum Network StackTa5d6ff"Tff7b72)Tff7b72]
Tff7b72#[Tff7b72command(version)Tff7b72]
Tff7b72pub Tff7b72struct T56d364Cli Tb4b4b4{
T8b949e/// Enable debug logging
Tff7b72#[Tff7b72arg(long, global = true)Tff7b72]
Tff7b72pub Te6edf3debug: Tffa657boolTb4b4b4,
Tff7b72#[Tff7b72command(subcommand)Tff7b72]
Tff7b72pub Te6edf3command: T56d364CommandsTb4b4b4,
Tb4b4b4}
Tff7b72#[Tff7b72derive(Subcommand)Tff7b72]
Tff7b72pub Tff7b72enum T56d364Commands Tb4b4b4{
T8b949e/// Run the SOCKS5 proxy server (exit node)
Te6edf3Server Tb4b4b4{
T8b949e/// Path to the identity file for persistent server address.
T8b949e/// Defaults to ~/.reticulum/rns_proxy_identity
Tff7b72#[Tff7b72arg(long, value_name = Ta5d6ff"Ta5d6ffPATHTa5d6ff"Tff7b72)Tff7b72]
Te6edf3identity_file: Tffa657OptionTff7b72<Tffa657StringTff7b72>Tb4b4b4,
Tb4b4b4}Tb4b4b4,
T8b949e/// Run the SOCKS5 proxy client (local proxy)
Te6edf3Client Tb4b4b4{
T8b949e/// RNS destination hash (hex)
Tff7b72#[Tff7b72arg(short, long)Tff7b72]
Te6edf3destination: Tffa657StringTb4b4b4,
T8b949e/// Local SOCKS5 listen address
Tff7b72#[Tff7b72arg(short, long, default_value = Ta5d6ff"Ta5d6ff127.0.0.1:1080Ta5d6ff"Tff7b72)Tff7b72]
Te6edf3listen: Tffa657StringTb4b4b4,
Tb4b4b4}Tb4b4b4,
Te6edf3Connect Tb4b4b4{
Tff7b72#[Tff7b72arg(short, long)Tff7b72]
Te6edf3destination: Tffa657StringTb4b4b4,
T8b949e/// Local SOCKS5 listen address
Tff7b72#[Tff7b72arg(short, long)Tff7b72]
Te6edf3ports: Tffa657VecTff7b72<Tffa657StringTff7b72>Tb4b4b4,
Tb4b4b4}Tb4b4b4,
Te6edf3Forward Tb4b4b4{
Tff7b72#[Tff7b72arg(long, value_name = Ta5d6ff"Ta5d6ffPATHTa5d6ff"Tff7b72)Tff7b72]
Te6edf3identity_file: Tffa657OptionTff7b72<Tffa657StringTff7b72>Tb4b4b4,
T8b949e/// Local SOCKS5 listen address
Tff7b72#[Tff7b72arg(short, long)Tff7b72]
Te6edf3ports: Tffa657VecTff7b72<Tffa657StringTff7b72>Tb4b4b4,
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.4.2 - Generated in 0.05s